﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using Auction_Intranet.Helpers;

namespace Auction_Intranet.Models
{
    public class PictureModelAdd
    {

        public int roomId { get; set; }

        [Display(Name = "Picture")]
        [Required(ErrorMessage = "Field required")]
        [FileExtensions("png|jpg|jpeg|gif|JPG", ErrorMessage = "Invalid file extension")]
        public HttpPostedFileWrapper ImageUploaded { get; set; }
    }
}